﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Web.Mvc;

namespace ControlePonto.Models
{
    [MetadataType(typeof(FuncionarioMetaData))]
    public partial class Funcionario
    {
        [Bind(Exclude = "ID")]
        public class FuncionarioMetaData
        {
            [Required]
            [StringLength(150)]
            public string Nome { get; set; }


            [Required]
            [DisplayName("Carga horária")]
            [Range(10, 80)]
            public int CargaHoraria { get; set; }

        }
    }
}